<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title><?php echo (C("WEBTITLE")); ?></title><meta name="robots" content="noindex, nofollow"><link rel="stylesheet" type="text/css" href="__PUBLIC__/admin/css/reset.css"/><link rel="stylesheet" type="text/css" href="__PUBLIC__/admin/css/style.css?v=<?php echo time();?>"/><script type="text/javascript" src="__PUBLIC__/admin/js/jquery-1.7.2.min.js"></script><script type="text/javascript" src="__PUBLIC__/admin/js/common.js"></script><script type="text/javascript">
var ROOT_PATH="__ROOT__",
	APP="__APP__",
	URL="__URL__",
	SELF="__SELF__";
</script></head><script language="javascript" type="text/javascript" src="__PUBLIC__/admin/js/My97DatePicker/WdatePicker.js"></script><script type="text/javascript">
$(function(){
	layout.listCheckAll();
	layout.listTableColor();
	layout.listFormSelectType('articleListForm','operateType','selectTypeBtn');
	layout.delDataConfirm();	
});
</script><body class="mainBackground"><script type="text/javascript">
$(function(){
	layout.init();	
});
</script><div class="sidebar"><div class="mt30 f14 bold"><?php echo (C("WEBTITLE")); ?></div><div class="mt10"><?php echo (session('username')); ?>(<?php echo (get_role(session('role'))); ?>)
        </div><div class="mt10"><a href="/" title="网站首页" target="_blank">网站首页</a> |
        	<a href="<?php echo U('Administrator/password');?>" title="修改密码">修改密码</a> |
            <a href="<?php echo U('Public/loginOut');?>" title="安全退出">安全退出</a></div><dl class="sidebar_nav"><dt <?php if((MODULE_NAME) == "Public"): ?>class="current"<?php endif; ?>><a href="<?php echo U('Public/index');?>" title="后台首页">后台首页</a></dt></dl><?php if(is_array($menu)): $i = 0; $__LIST__ = $menu;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><dl class="sidebar_nav"><dt <?php if(($vo[name]) == MODULE_NAME): ?>class="current"<?php endif; ?>><?php echo ($vo["title"]); ?></dt><dd <?php if(($vo[name]) == MODULE_NAME): ?>style="display: block;"<?php endif; ?>><?php if(is_array($vo["sub"])): $i = 0; $__LIST__ = $vo["sub"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><a href="<?php echo U($vo[name].'/'.$v[name]);?>" title="<?php echo ($v["title"]); ?>"><?php echo ($v["title"]); ?></a><?php endforeach; endif; else: echo "" ;endif; ?></dd></dl><?php endforeach; endif; else: echo "" ;endif; ?></div><div class="main" id="mainContainer"><div class="content_box"><div class="content_box_t"><h3 class="fl">
                管理文章
                </h3></div><div class="content_box_c"><form action="__URL__" method="get" class="pb20" id="articleSearchForm"><label class="searchForm_title">关键词</label><input class="text_input samll_input" type="text" name="title" value="<?php echo ($param["title"]); ?>" /><label class="searchForm_title">栏目</label><select name="category_id" class="public_dropdown "><option value="">请选择栏目</option><?php echo ($optionStr); ?></select><label class="searchForm_title">发布时间</label><input class="text_input w10_input Wdate" type="text" name="start_time" onClick="WdatePicker()" readonly/>-<input class="text_input w10_input Wdate" type="text" name="end_time"  onClick="WdatePicker()" readonly/><input type="submit" value="搜索" class="public_button ml10" /></form><?php if(!empty($datas)): ?><form action="__URL__/del" method="POST" id="articleListForm"><table class="public_table"><thead><tr><th><input class="check_all" type="checkbox" /></th><th>ID</th><th>标题</th><th>栏目</th><th>时间</th><th>状态</th><th>操作</th></tr></thead><tbody><?php if(is_array($datas)): $i = 0; $__LIST__ = $datas;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$data): $mod = ($i % 2 );++$i;?><tr><td><input type="checkbox"  name="id[]" value="<?php echo ($data["id"]); ?>"/></td><td><?php echo ($data["id"]); ?></td><td><?php echo (msubstr($data["title"],0,24,'utf-8')); if(($data['thumb']) != ""): ?><a href="/uploadfile/original/<?php echo ($data["thumb"]); ?>" title="查看图片" target="_blank"  style="color:#F00; margin-left:5px;">[图]</a><?php endif; ?></td><td><?php echo (get_category($data["category_id"])); ?></td><td><?php echo (date("Y-m-d H:i:s",$data["edit_time"])); ?></td><td><?php if(($data[status]) == "1"): ?>开放<?php else: ?>禁止<?php endif; if(($data[markdown_content]) != ""): ?>（markdown）<?php else: endif; ?></td><td><a href="<?php echo U('Article/edit',array('id'=>$data[id]));?>" title="编辑" class="mr5">编辑</a><a href="<?php echo U('Article/del',array('id'=>$data[id]));?>" title="删除" class="delHandle mr5">删除</a><a href="<?php echo U('Comment/index',array('value_id'=>$data[id]));?>" title="查看评论">查看评论</a></td></tr><?php endforeach; endif; else: echo "" ;endif; ?></tbody><tfoot><tr><td colspan="7"><div class="bulk_actions fl"><select name="operateType" id="operateType"><option value="__URL__/del">删除</option><option value="__URL__/change/type/resume">开启</option><option value="__URL__/change/type/forbid">禁止</option></select><input type="submit" value="确定"  class="public_button" id="selectTypeBtn"/></div><div class="pagination fr"><?php echo ($page); ?></div><div class="clear"></div></td></tr></tfoot></table></form><?php endif; ?></div></div></div></body></html>